package com.example.administrator.tiyuapp;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

/**
 * Created by Administrator on 2017/1/16.
 */
public class App extends Application {

    private RequestQueue requestQueue;
    private static App app;

    public RequestQueue getRequestQueue() {
        return requestQueue;
    }

    public static App getApp() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app=this;
        requestQueue = Volley.newRequestQueue(this);
    }
}
